package com.xnyzc.lhy.resource.feign.fallback.coupon;

import com.xnyzc.lhy.common.entity.CouponRv;
import com.xnyzc.lhy.common.penum.coupon.CouponErrorCode;
import com.xnyzc.lhy.mis.entity.coupon.CouponBatchPublishParam;
import com.xnyzc.lhy.mis.entity.coupon.CouponPublishParam;
import com.xnyzc.lhy.resource.feign.coupon.ICouponService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 优惠券处理 服务实现类
 * </p>
 *
 * @author haoyfa
 * @since 2019-11-04
 */
@Slf4j
@Service
public class CouponServiceFallback implements ICouponService {
    /**
     * 有效优惠券查询
     *
     * @return
     */
    @Override
    public CouponRv queryEffectiveCouponList() {
        return CouponRv.wrapErrorCode(CouponErrorCode.misServerError);
    }

    /**
     * 发放优惠券
     *
     * @return
     */
    @Override
    public CouponRv publishCoupon(CouponPublishParam couponPublishParam) {
        return CouponRv.wrapErrorCode(CouponErrorCode.misServerError);
    }

    /**
     * 批量发放优惠券
     *
     * @return
     */
    @Override
    public CouponRv batchPublishCoupon(CouponBatchPublishParam couponBatchPublishParam) {
        return CouponRv.wrapErrorCode(CouponErrorCode.misServerError);
    }
}
